<include file="__THEME__/public_header"/>
<link href="__APP__/friend.css" type="text/css" rel="stylesheet">

<div class="main">
    <include file="_nav"/>


<div style="width: 740px;height: 280px;">

 <div>搜索好友</div>
    <div  style="float: left"><a class="a" onclick="change_serchtype('{$myschool.college}',1)">大学同学 </a>|</div>
    <div style="float: left"><a class="a" onclick="change_serchtype('{$myschool.high}',1)">高中同学</a> |</div>
    <div  style="float: left"> <a class="a" onclick="change_serchtype('{$myschool.middle}',1)">初中同学</a> |</div >
    <div  style="float: left"><a class="a" onclick="change_serchtype('{$myschool.primary}',1)">小学同学</a> |</div>
    <div><a class="a" onclick="change_serchtype('{$mywork.0.company}',0)">公司</a></div>
    <div> <input id="serch_name" type="text" >  <input id="serch_type_v" type="text" value="{$myschool.college}" >
        <input id="serch_type" type="hidden" value="1" >
        <a onclick="find_friend()" class="a" id="serch_btn">找人</a> </div>
</div>
    <div>
        <div>可能认识的人</div>
    <volist name="user1" id="v" offset="0" length='14'>
        <div style="width: 100px;height: 220px;float: left">
            <div style="">
                <img src=" {$v.avatar_small}">
                <div class="clearfix"></div>
                {$v.name}
                <div class="clearfix"></div>
                <a  onclick="addfriend('{$v.uid}')" style="cursor: pointer" >请求加为好友</a>
            </div>


        </div>

    </volist>
    </div>
</div>
<include file="__THEME__/public_footer"/>
<script>
  function find_friend(){

      location.href =U('friend/Index/find_friend'+'&name='+$('#serch_name').val()+'&type_v='+$('#serch_type_v').val()+'&type='+$('#serch_type').val());
  }
    function change_serchtype(type_name,type){
        $('#serch_type').val(type);
        $('#serch_type_v').val(type_name);
    }
</script>